﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="maptest._Default" %>
<%@ Register TagPrefix="cc1" Namespace="ThinkGeo.MapSuite.WebEdition" Assembly="WebEdition" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
    <head>
        <script type="text/javascript">
            function OnOverlaysDrawing(layers) {

                for (var index = 0; index < layers.length; index++) {
                    var templayer = layers[index];
                    if (OpenLayers.String.contains(templayer.CLASS_NAME, 'Google')) {

                        templayer.MIN_ZOOM_LEVEL = 13;
                        templayer.MAX_ZOOM_LEVEL = 20;
                    }
                }
            }
        </script>
        <script>
            function load() {
                var switer = document.getElementsByClassName("baseLbl")[0];
                switer.style.color = "#AA0000";
                switer.innerHTML = "Bản đồ nền";
            }
        </script>
    </head>
    <body style="margin: 0px;padding: 0px;" onload="load()">
        <form id="form1" runat="server">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
						                <div style="height: 100vh; ">
                                            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                                            <cc1:Map ID="Map1" runat="server" Height="100%" Width="100%"></cc1:Map>
                                        </div>
                                                </ContentTemplate>
                                        </asp:UpdatePanel>
                        </form> 
    </body>
</html>
  
          
